.sidebar {
  width: 280px;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #f0f0f0;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo {
  padding: 0 20px;
  margin-bottom: 20px;
  img {
    width: 40px;
    height: 40px;
  }
}

.menuList {
  padding: 0 12px;
}

.menuItem {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  margin: 4px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;

  &:hover {
    background: #f5f5f5;
  }

  .icon {
    width: 16px;
    height: 16px;
    margin-right: 12px;
  }

  span {
    margin-left: 12px;
    font-size: 14px;
    color: #333;
  }
}

.historyMenuItem {
  position: relative;
  
  .arrow {
    position: absolute;
    right: 16px;
    transition: transform 0.3s;
    
    &.collapsed {
      transform: rotate(-180deg);
    }
  }
}

.historyList {
  margin-top: 20px;
  padding: 0 12px;
  flex: 1;
  overflow-y: auto;
  transition: all 0.3s;
  max-height: 500px;

  &.collapsed {
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
  }
}

.historyItem {
  padding: 12px 16px;
  margin: 4px 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: all 0.3s;

  &:hover {
    background: #f5f5f5;
  }
  
  &.active {
    background: #e6f7ff;
    color: #1890ff;
    font-weight: 500;
    border-left: 3px solid #1890ff;
  }
}

.viewAll {
  padding: 16px;
  text-align: center;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  
  &.collapsed {
    display: none;
  }
  
  &:hover {
    color: #333;
  }
}

.loading {
  padding: 12px 16px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

.uploadingContainer {
  padding: 20px;
  text-align: center;
  
  p {
    margin-top: 12px;
    color: #1890ff;
  }
}

.loadingSpinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(24, 144, 255, 0.2);
  border-radius: 50%;
  border-top-color: #1890ff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
} 